package os_listener;

import java.io.Serializable;

/**
 * this class is the class that will be sent to the user spy program from the server 
 * program for updates from the server about shared directories
 */
public class ServerUpdates implements Serializable
{
	// a String that describes the update
	String update;
	String dir_name;
	// the user continuation number
	long cc_user;
	// the user that sent the new update
	String old_user_name;
	// file's bytes - for sending files
	byte[] bytes;
	// the file's name
	String file_name;
	// the file's hash
	String hash;
	
	// the getters and setters of this class

	public String getHash()
	{
		return hash;
	}

	public void setHash(String hash) 
	{
		this.hash = hash;
	}

	public String getFile_name() 
	{
		return file_name;
	}

	public void setFile_name(String file_name) 
	{
		this.file_name = file_name;
	}

	public byte[] getBytes() 
	{
		return bytes;
	}

	public void setBytes(byte[] bytes) 
	{
		this.bytes = bytes;
	}

	public String getOld_user_name() 
	{
		return old_user_name;
	}

	public void setOld_user_name(String old_user_name) 
	{
		this.old_user_name = old_user_name;
	}

	public long getCc_user()
	{
		return cc_user;
	}

	public void setCc_user(long cc_user) 
	{
		this.cc_user = cc_user;
	}

	public String getDir_name() 
	{
		return dir_name;
	}

	public void setDir_name(String dir_name) 
	{
		this.dir_name = dir_name;
	}

	public String getUpdate() 
	{
		return update;
	}

	public void setUpdate(String update)
	{
		this.update = update;
	}
}